import 'dart:io';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutterstart/animation/scale_animation.dart';

void main() {
//  runApp(FlutterStart());

  runApp(FlutterStart());

  if (Platform.isAndroid) {
    SystemUiOverlayStyle style = SystemUiOverlayStyle(
        statusBarColor: Colors.transparent,
        statusBarIconBrightness: Brightness.light);
    SystemChrome.setSystemUIOverlayStyle(style);
  }
}

class FlutterStart extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '趣租',
//      theme: ThemeData(
//        primarySwatch: Colors.white,
//      ),
      theme: ThemeData(
        primaryColor: Colors.white,
        buttonColor: Color(0xFF64E1DE),
      ),
      home: ScaleAnimation(),
    );
  }
}
